<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" media="screen"
		href="resources/style.css" />
	<title>E-PRODUÇÃO</title>
</h:head>

<h:body>

	<p:layout fullPage="true">

		<p:layoutUnit position="north" size="70">
			<ui:include src="cabecalho.xhtml" />
		</p:layoutUnit>
		
		<p:layoutUnit position="west" size="200" resizable="false"
			closable="false" collapsible="false">
			<ui:include src="Menu.xhtml" />
		</p:layoutUnit>

		<p:layoutUnit position="center" header="Cadastro Matéria Prima" style="width: 760px;">
			<h:form id="form">
			
				<p:growl id="MSG_ERRO" showDetail="false" sticky="true" />
				<div align="center">
					<div style="width: 760px; margin: 0 auto; text-align: left;">

						<p:panel id="panelLinks" header="Links" visible="true"
							style="width: 760px;">
							<p:commandLink id="Buscar" action="#{MateriaPrima.Buscar}"
								ajax="false">
								<h:outputText value="Buscar" />
							</p:commandLink>
						</p:panel>

						<p:panel id="panelCampos" header="Campos de Preenchimento"
							visible="true" style="width: 760px;">
				
					<h:panelGrid columns="2" >

						<h:outputLabel value="Descrição:" />
						<p:inputText label="Descrição" required="false" maxlength="70"
							value="#{MateriaPrima.descr}" size="35" />
	
														<h:outputLabel value="Tipo de Materia Prima:" />
								<p:selectOneMenu value="#{MateriaPrima.selectTipoMateriaPrima}" size="35"
									effect="fade">
									<f:selectItem itemLabel="" itemValue="" />
									<f:selectItems value="#{MateriaPrima.listTipoMateriaPrima}" />
								</p:selectOneMenu>
							
					</h:panelGrid>
					</p:panel>
					
					<p:panel id="panelBotoes" header="Botões de Ação" visible="true"
							style="width: 760px;">
							<h:panelGrid columns="4"
								style="margin-left: 20%;margin-rigth: 20%;">
								<p:commandButton value="Cadastrar" ajax="false" />
								<p:commandButton value="Cancelar" ajax="false" />
								<p:commandButton value="Limpar" ajax="false" />
								<p:commandButton value="Voltar" ajax="false"
									action="#{MateriaPrima.Voltar}" />
							</h:panelGrid>
						</p:panel>
					</div>
				</div>
			</h:form>
		</p:layoutUnit>
	</p:layout>

</h:body>
</html>